package com.example.demotool.controller;

import com.example.demotool.aop.annotation.LogTrack;
import com.example.demotool.bean.UserBean;
import com.example.demotool.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/login")
@RestController
public class ConnectController {
    @Resource
    private UserService userService;

    @RequestMapping("/test")
    @LogTrack()
    public UserBean login() {
        UserBean userBean = userService.loginIn("a", "a");
        return userBean;
    }
}
